<div class="layui-form" lay-filter="LAY-set-dict-form" style="padding: 20px 30px 0 0;">

    <script type="text/html" template>
      <input type="text" name="dictType" value="{{ d.params.dictTypeId || '' }}" style="display: none;">
    </script>
  
  
    <div class="layui-form-item">
      <label class="layui-form-label">类型</label>
      <div class="layui-input-inline">
        <script type="text/html" template lay-done="layui.data.done(d.params);">
          <input type="text"  value="{{ d.params.typeName || '' }}" readonly class="layui-input">
        </script>
      </div>
    </div>

    <script type="text/html" template>
    {{# if(d.params.t == "add") { }}
    <div class="layui-form-item">
        <label class="layui-form-label">值</label>
        <div class="layui-input-inline">
            <input type="text" name="value" lay-verify="required" class="layui-input">
        </div>
    </div>
    {{# } else if(d.params.t == "del") { }}
    <div class="layui-form-item">
        <label class="layui-form-label">需要删除的值</label>
        <div class="layui-input-inline">
            <div id="LAY-set-dict-form-valueSelect2" class="xm-select-demo"></div>
        </div>
    </div>
    {{# } else{ }}
    <div class="layui-form-item">
        <label class="layui-form-label">旧值</label>
        <div class="layui-input-inline">
            <div id="LAY-set-dict-form-valueSelect" class="xm-select-demo"></div>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">新值</label>
        <div class="layui-input-inline">
            <input type="text" name="value" lay-verify="required" class="layui-input">
        </div>
    </div>
    {{# } }}
    </script>
  
    <div class="layui-form-item">
      <label class="layui-form-label"></label>
      <div class="layui-input-inline">
        <input type="button" lay-submit lay-filter="LAY-set-dict-form-submit" value="确认" class="layui-btn">
      </div>
    </div>

  </div>
  
  <script>
    layui.data.done = function (d) {
      layui.use(['admin', 'form','xmSelect'], function () {
        var $ = layui.$,
          form = layui.form
          ,setter = layui.setter
          ,admin = layui.adminl
          ,xmSelect = layui.xmSelect;
  
        var ok = setter.response.statusCode.ok;
        var fail = setter.response.statusCode.fail;
        var error = setter.response.statusCode.error;
  
  
  
  
      });
    }
  </script>